package my.learn.tx.onAnno.service.impl;

import my.learn.tx.onAnno.dao.AccountDao;
import my.learn.tx.onAnno.domain.Account;;
import my.learn.tx.onAnno.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class AccountServiceImpl implements AccountService {

    @Autowired
    AccountDao accountDao;


    @Override
    public Account findById(Integer id) {
        return accountDao.findById(id);
    }

    @Override
    public Integer updateAccount(Account account) {
        return accountDao.updateAccount(account);
    }
}
